package com.weiyuwqj.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created by zhangyong on 2016/12/8.
 */
@Controller
@RequestMapping("/loginOut")
public class UserLoginOutController {

    @RequestMapping(value = "")
    public Object loginOut(HttpSession session){
        session.invalidate();
        return "main/login";
    }
}
